#include <QApplication>
#include "mymainwindow.h"

void printHelp(char *app)
{
    printf("Usage: %s Default.cfg!\n"
           "Arg: Default.cfg is a file for paraments configure\n"
           "use \"<- ->\" change to next/pre frame.\n"
           "use \"Ctrl+z\" to cancel a current draw in turns.\n"
           "use \"right-click\" to delect a pre draw\n\n",app);
}


int main(int argc, char *argv[])
{
    QApplication app(argc,argv);
    QFont ft = QFont("Times",12,QFont::Bold);
    app.setFont(ft);
    if(argc<2){
        printHelp(argv[0]);
        static MyMainWindow view("Default.cfg");
        view.show();
    }
    else{
        static MyMainWindow view(argv[1]);
        view.show();
    }
    return app.exec();
}

/**
#define FOREGROUND_BLUE 0x1
#define FOREGROUND_GREEN 0x2
#define FOREGROUND_RED 0x4
#define FOREGROUND_INTENSITY 0x8
#define BACKGROUND_BLUE 0x10
#define BACKGROUND_GREEN 0x20
#define BACKGROUND_RED 0x40
#define BACKGROUND_INTENSITY 0x80
#define COMMON_LVB_LEADING_BYTE 0x100
#define COMMON_LVB_TRAILING_BYTE 0x200
#define COMMON_LVB_GRID_HORIZONTAL 0x400
#define COMMON_LVB_GRID_LVERTICAL 0x800
#define COMMON_LVB_GRID_RVERTICAL 0x1000
#define COMMON_LVB_REVERSE_VIDEO 0x4000
#define COMMON_LVB_UNDERSCORE 0x8000
#define COMMON_LVB_SBCSDBCS 0x300
*/
